/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tmPHA;


import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author squirrel
 */
public class Memory {
    public HashMap Memoria;
    public Memory(ArrayList Hormigas, int m, int n){
        Memoria=new HashMap();
        for(int i=0;i<Hormigas.size();i++){
            Hormiga stupid=(Hormiga)Hormigas.get(i);
            Memoria.put(stupid.id, new Environment(m,n));
        }
    }
    public Environment getMemory(int id){
        return (Environment)Memoria.get(id);
    }
    public void setMemory(int id,Environment nueva){
        Memoria.put(id, nueva);
    }
}
